package cn.takovh.zpl.bean;

import org.dom4j.Element;

public class Title implements ElementBean {
    private String text;

    public Title() {
    }

    public Title(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public void getElement(Element root) {
        root.addText(text);
    }

    @Override
    public void parseElement(Element root) {
        this.text = root.getText();
    }
}
